home *** CD-ROM | disk | FTP | other *** search
- unit DummyForm;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, Menus, ActnList, ImgList, ComCtrls, ExtCtrls, DeskUtil, DeskForm, DockForm, DockToolForm, IDECommandButton;
-
- type
- TDummyExpert = class(TDockableToolBarForm)
- ToolImages: TImageList;
- TreeImages: TImageList;
- ActionList2: TActionList;
- CompileAction: TAction;
- AddAction: TAction;
- RemoveAction: TAction;
- OptionsAction: TAction;
- InstallAction: TAction;
- UpdateAction: TAction;
- StatusbarCmd: TAction;
- StatusBarContents: TAction;
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- procedure InvokeDummyExpert;
-
- implementation
-
- {$R *.DFM}
-
- procedure InvokeDummyExpert;
- begin
- TDummyExpert.Create (Application).Show;
- end;
-
- procedure TDummyExpert.FormCreate(Sender: TObject);
- begin
- DeskSection := 'DummyExpert';
- Inherited FormCreate (Sender);
- ToolBar1.Images := ToolImages;
-
- // Create some buttons in the toolbar as per Package Editor
-
- with TCommandButton.Create (ToolBar1) do begin
- Parent := ToolBar1;
- Left := 4; Top := 0; Width := 56; Height := 36;
- Action := CompileAction;
- Images := ToolImages;
- ShowCaption := True;
- end;
-
- with TCommandButton.Create (ToolBar1) do begin
- Parent := ToolBar1;
- Left := 68; Top := 0; Width := 56; Height := 36;
- Action := AddAction;
- Images := ToolImages;
- ShowCaption := True;
- end;
-
- with TCommandButton.Create (ToolBar1) do begin
- Parent := ToolBar1;
- Left := 124; Top := 0; Width := 56; Height := 36;
- Action := RemoveAction;
- Images := ToolImages;
- ShowCaption := True;
- end;
-
- with TCommandButton.Create (ToolBar1) do begin
- Parent := ToolBar1;
- Left := 188; Top := 0; Width := 56; Height := 36;
- Action := InstallAction;
- Images := ToolImages;
- ShowCaption := True;
- end;
-
- with TCommandButton.Create (ToolBar1) do begin
- Parent := ToolBar1;
- Left := 244; Top := 0; Width := 56; Height := 36;
- Action := OptionsAction;
- Images := ToolImages;
- ShowCaption := True;
- end;
- end;
-
- initialization
- RegisterDesktopFormClass (TDummyExpert, 'DummyExpert', 'DummyExpert');
- end.
-
-
-
-
-
-
-
-